<template>
    <div class="countDown">
        <div class="countDownTips">
            Approval chance up to 98% within the limited time!
        </div>
        <count-down
          ref="countDown"
          millisecond
          :time="3600000"
          :auto-start="true"
          format="mm:ss"
          @finish="onFinish"
        />
    </div>
</template>
<script>
import { CountDown } from 'vant';
export default {
    components:{
        CountDown
    },
    data(){
        return{

        }
    },
    methods:{
        onFinish(){
            this.$refs.countDown.reset()
        }
    }
    
}
</script>
<style scoped lang='scss'>
    .countDown{
        text-align: center;
        .countDownTips{
            background: #F9FEF8;
            box-shadow: 0px 4px 8px 0px rgba(186,184,184,0.5);
            border-radius: 0px 0px 24px 24px;
            height: 96px;
            font-size: 24px;
            line-height: 96px;
            margin: 0 24px;
        }
        .van-count-down{
            color:#5833B6;
            font-size: 48px;
            padding: 28px 0;
            line-height: 48px;
            text-decoration: underline;
        }
    }
</style>